import { ModuleWithProviders } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';
import { BaseUploadComponent } from './base-upload/base-upload.component';
import { FileFragmentComponent } from './file-fragment/file-fragment.component';
import { FileDownloadComponent } from './file-download/file-download.component';

const childRoutes: Routes = [
    {
      path: 'baseUse',
      component: BaseUploadComponent,
    },
    {
      path: 'fileFragment',
      component: FileFragmentComponent,
    },
    {
      path: 'fileDownload',
      component: FileDownloadComponent,
    },
    {
      path: '',
      // pathMatch: 'full',
      redirectTo: 'baseUse'
    },
    // {
    //   path: '**',
    //   redirectTo: 'list'
    // }
  ];
export const UploadRouterModule: ModuleWithProviders = RouterModule.forChild(childRoutes);

